﻿CREATE TABLE [dbo].[Tenants]
(
	[Id]			[BIGINT]		NOT NULL	IDENTITY(1, 1),
	[Key]			[VARCHAR](50)	NOT NULL,
	[CompanyName]	[VARCHAR](255)	NOT NULL,
	[DisplayName]	[VARCHAR](255)	NOT NULL,
	[Website]		[VARCHAR](255)	NULL,
	[CreatedAt]		[DATETIME]		NOT NULL,
	CONSTRAINT PK_Tenants PRIMARY KEY ([Id]),
	CONSTRAINT IX_Tenants_Key UNIQUE ([Key])
)
